<?php require VIEW_ROOT.'/common/header.php'?>

<form action="?m=link&a=item_add_do" method="post">
<table>
	<tr>
		<th colspan="2">添加链接</th>
	</tr>
	<tr>
		<td width="100">分类</td>
		<td class="frm">
			<select name="data[link_cat_id]">
				<?php foreach ($cats as $row) {?>
					<option value="<?php echo $row['link_cat_id']?>"><?php echo $row['name']?></option>
				<?php }?>
			</select>
		</td>
	</tr>
	<tr>
		<td width="100">父链接</td>
		<td class="frm"><input type="text" name="data[parent_id]" value="1" /></td>
	</tr>
	<tr>
		<td>链接标题</td>
		<td class="frm"><input type="text" name="data[title]" value="" /></td>
	</tr>
	<tr>
		<td>链接地址</td>
		<td class="frm"><input type="text" name="data[url]" value="" /></td>
	</tr>
	<tr>
		<td></td>
		<td class="frm"><input type="submit" value="提交" /></td>
	</tr>
</table>
</form>

<?php require VIEW_ROOT.'/common/footer.php'?>